#!/usr/bin/dev python
#
import math
line=int(input("input the rows:"))
for n in range(line):
    li=[]
    for m in range(n+1):
        result=int(math.factorial(n)/(math.factorial(m)*math.factorial(n-m)))
        li.append(result)
    print(li)
    
